package com.qixin.modules.rzInvoice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: ea_hotelbookspersond
 * @Author: qixin-boot
 * @Date:   2021-09-11
 * @Version: V1.0
 */
@Data
@TableName("ea_hotelbookspersond")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ea_hotelbookspersond对象", description="ea_hotelbookspersond")
public class EaHotelbookspersond implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**入住人*/
	@Excel(name = "入住人", width = 50)
    @ApiModelProperty(value = "入住人")
    private String personnelid;
    private transient String personnelidName;
	/**报销人单位*/
	@Excel(name = "报销人单位", width = 50)
    @ApiModelProperty(value = "报销人单位")
    private String companyid;

    private transient String companyidName;
	/**报销人单位*/
	@Excel(name = "报销人单位", width = 50)
    @ApiModelProperty(value = "报销人单位")
    private String deptid;
    private transient String deptidName;
	/**开始时间*/
	@Excel(name = "开始时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "开始时间")
    private Date startdate;
	/**结束时间*/
	@Excel(name = "结束时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "结束时间")
    private Date enddate;
	/**费用承担单位*/
	@Excel(name = "费用承担单位", width = 50)
    @ApiModelProperty(value = "费用承担单位")
    private String companyidcost;
    private transient String companyidcostName;
	/**费用承担部门*/
	@Excel(name = "费用承担部门", width = 50)
    @ApiModelProperty(value = "费用承担部门")
    private String deptidcost;
    private transient String deptidcostName;
    /**金额*/
    @Excel(name = "金额", width = 15)
    @ApiModelProperty(value = "金额")
    private BigDecimal amount;
    /**大写金额*/
    private transient String amount_cn;


    /**父类id*/
    @Excel(name = "父类id", width = 50)
    @ApiModelProperty(value = "父类id")
    private String pid;

    /**人员任职信息主键*/
    @Excel(name = "人员任职信息主键", width = 50)
    @ApiModelProperty(value = "人员任职信息主键")
    private String psnjobId;
}
